﻿//-------------------------------------------------------------------------------------------------------------------------------------
// Copyright (C) 2005 greatelsoft.com All Rights Reserved
//-------------------------------------------------------------------------------------------------------------------------------------

using System;
using System.Data.Common;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using GTS.MiniBox.Entity;
using Pub.Class;

namespace GTS.MiniBox.Helper {
   
    public partial class BusinessSettlementHelper {

        public static int batch(string data, string startTime, string endTime, string dbkey) {
            DbParameter[] dbparam = new DbParameter[]{
                    Data.MakeInParam("@StartTime", (DbType)SqlDbType.VarChar, 10, startTime),
                    Data.MakeInParam("@EndTime", (DbType)SqlDbType.VarChar, 10, endTime),
                    Data.MakeInParam("@Data", (DbType)SqlDbType.NVarChar, -1, data)
            };
            return Data.Pool(dbkey).ExecSql("BusinessSettlement_Batch", dbparam);
        }
    }
}

